package io.github.shenbinglife.springboot2.layui.admin.dao;

import io.github.shenbinglife.springboot2.layui.admin.entity.Menu;
import io.github.shenbinglife.springboot2.layui.common.jpa.IBaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MenuDao
 *
 * @author shenbing
 * @date 2021/4/12 21:29
 */

@Repository
public interface MenuDao extends IBaseRepository<Menu, Long> {
    List<Menu> findByParentIdOrderByOrdered(Long parentId);
}
